//
//  ReportPriceView1.m
//  WorkNest
//
//  Created by qbm360 on 15/7/28.
//  Copyright (c) 2015年 nest. All rights reserved.
//

#import "ReportPriceView1.h"

@interface ReportPriceView1 ()

@property (strong, nonatomic) IBOutlet UIView *view;
@property (weak, nonatomic) IBOutlet UIView *view1;
@property (weak, nonatomic) IBOutlet UILabel *price;
@property (weak, nonatomic) IBOutlet UILabel *other;
@property (weak, nonatomic) IBOutlet UILabel *quoteNote;
@property (weak, nonatomic) IBOutlet UILabel *splCost;
@property (weak, nonatomic) IBOutlet UILabel *splTime;

@end

@implementation ReportPriceView1

- (id)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self setup];
    }
    return self;
}

- (id)initWithCoder:(NSCoder *)aDecoder {
    self = [super initWithCoder:aDecoder];
    if(self) {
        [self setup];
    }
    return self;
}

- (void)setup {
    [[NSBundle mainBundle] loadNibNamed:@"ReportPriceView1" owner:self options:nil];
    _view.frame = self.bounds;
    [self addSubview:_view];
    _view1.layer.masksToBounds = YES;
    _view1.layer.cornerRadius = 6.0;
    _view1.layer.borderWidth = 1;
    _view1.layer.borderColor = [[UIUtil colorWithHexString:@"#bdbaba"] CGColor];
}

- (void)setModel:(QueryQuoteModel *)model {
    _model = model;
    self.price.text = _model.otherCost;
    self.other.text = _model.other;
    self.quoteNote.text = _model.quoteNote;
    self.splCost.text = [NSString stringWithFormat:@"样衣开发费用:%@元",_model.splCost];
    self.splTime.text = [NSString stringWithFormat:@"样衣开发周期:%@天",_model.splTime];
}

@end
